package com.redis.demo;


import com.example.domain.MFile;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.ws.rs.GET;
import java.util.List;

@RestController
@RequestMapping("redis")
public class RedieController {

    @Autowired
    private RedisCacheDemo redisCacheTest;

    @ApiOperation("redis测试")
    @GetMapping("redistest")
    public Object redisController(){
        List<MFile> uFiles=redisCacheTest.selectUFileList();
        return uFiles;
    }

}
